/*
 **公用接口
 **
 ****/
//获取字典
import request from '../utils/fetch'
export function listPkey(data) {
    return request({
        url: '/dict/list/pkey',
        method: 'get',
        loading: false,
        params: data
    })
}
//获取电话
export function phoneNum() {
    return request({
        url: '  ',
        method: 'get',
        loading: true,
        params: { key: 'sysConcatNum' }
    })
}

//根据城市名称 获取城市code
export function regionCity(data) {
    return request({
        url: '/region/address/code',
        method: 'get',
        loading: true,
        params: data
    })
}

//获取虚拟电话
/**
 * 
 * @param {
 *  calledCustomerId: customerid,
    fpiId: fpiId,
    aPhone: phone
 * } data 
 */
export function axb(data) {
    return request({
        url: '/api/recruit/bind/axb',
        method: 'post',
        loading: true,
        data: data
    })
}